/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package B3D_Elements.B3D_Physics;

import B3D_Elements.B3D_Physics.B3D_CShapes.B3D_CShape;
import B3D_Elements.B3D_Element;
import java.io.Serializable;

/**
 *
 * @author David
 */
public class B3D_Physics extends B3D_Element implements Serializable
{

    private float mass;
    private float resitution;
    private B3D_CShape cShape;
    private boolean kinematic;

    public B3D_Physics(float m, float r, B3D_CShape shape, boolean _kinematic)
    {
        setName("Physics");
        kinematic = _kinematic;
        mass = m;
        resitution = r;
        cShape = shape;
    }

    public boolean isKinematic()
    {
        return kinematic;
    }

    public void setKinematic(boolean kinematic)
    {
        this.kinematic = kinematic;
    }

    public float getMass()
    {
        return mass;
    }

    public void setMass(float mass)
    {
        this.mass = mass;
    }

    public float getResitution()
    {
        return resitution;
    }

    public void setResitution(float resitution)
    {
        this.resitution = resitution;
    }

    public B3D_CShape getcShape()
    {
        return cShape;
    }

    public void setcShape(B3D_CShape cShape)
    {
        this.cShape = cShape;
    }
}
